<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="targetType" value="${empty param.targetType ? 'navTab' : param.targetType}"/>
<form id="pagerForm" method="post" action="${pageContext.request.contextPath}/cb/selectgetAll.do">
	<input type="hidden" name="pageNum" value="1" />
	<input type="hidden" name="numPerPage" value="${pagination.numPerPage }" />
	<input type="hidden" name="pageSize" value="${pagination.pageSize}" />
	<input type="hidden" name="orderField" value="${param.orderField}" />
	<input type="hidden" name="orderDirection" value="${param.orderDirection}" />
	<%-- <input type="text" value="${targetType}">
	<input type="text" value="${pagination.pageSize}"> --%>
</form>


<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="demo_page1.html" method="post">
	<div class="searchBar">
		<!--<ul class="searchContent">
			<li>
				<label>我的客户：</label>
				<input type="text"/>
			</li>
			<li>
			<select class="combox" name="province">
				<option value="">所有省市</option>
				<option value="北京">北京</option>
				<option value="上海">上海</option>
				<option value="天津">天津</option>
				<option value="重庆">重庆</option>
				<option value="广东">广东</option>
			</select>
			</li>
		</ul>
		-->
		<table class="searchContent">
			<tr>
				<td>
					用户名：<input type="text"/>
				</td>
				<td>
					出生日期：<input type="text" class="date" readonly="true" />
				</td>
				<td>
					<select class="combox" name="province">
						<option value="">所有省市</option>
						<option value="北京">北京</option>
						<option value="上海">上海</option>
						<option value="天津">天津</option>
						<option value="重庆">重庆</option>
						<option value="广东">广东</option>
						<option value="陕西">陕西</option>
					</select>
				</td>
				<td>
				<div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
				</td>
			</tr>
		</table>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
				<li><a class="button" href="demo_page6.html" target="dialog" mask="true" title="查询框"><span>高级检索</span></a></li>
			</ul>
		</div>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="demo_page4.jsp" target="dialog" rel="adduser"><span>添加</span></a></li>
			<li><a title="确实要删除这些记录吗?" target="selectedTodo" rel="ids" postType="string" href="${pageContext.request.contextPath }/deleteUser.action" class="delete"><span>批量删除</span></a></li>
			<li><a class="edit"  href="<c:url value='../update.action?id={sid_user}'/>" target="dialog"><span>编辑</span></a></li>
			<li class="line">line</li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
				<th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
				<th width="120">序号</th>
				<th>用户名称</th>
				<th width="100">性别</th>
				<th width="180">证件号码</th>
				<th width="110">出生日期</th>
				<th width="120">身份证地址</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${list}" var="user" varStatus="m">
			<tr target="sid_user" rel="${user.id}">
				<td><input name="ids" value="${user.id}" type="checkbox"></td>
				<td>${m.count}</td>
				<td>${user.name}</td>
				<td>男</td>
				<td>29385739203816293</td>
				<td>${user.timeOut}</td>
				<td>陕西省铜川市耀州区</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="dwzPageBreak({targetType:'${targetType}',data:{numPerPage:this.value}})">
				<c:forEach begin="5" end="20" step="5" varStatus="s">
				<option value="${s.index}" ${pagination.numPerPage eq s.index ? 'selected="selected"' : ''}>${s.index}</option>
			</c:forEach>
			</select>
			<span>条，共${pagination.totalCount}条</span>
		</div>

		<div class="pagination" targetType="${targetType}" totalCount="${pagination.totalCount}" numPerPage="${pagination.numPerPage}" pageNumShown="5" currentPage="${pagination.pageNum}"></div>
	</div>
</div>
